import argparse

import command


def git_status():
    parser = argparse.ArgumentParser(description='Git Status Command')
    parser.add_argument('type', nargs='?', default='', help='-s 分类显示')

    # 解析命令行参数
    args, unknown_args = parser.parse_known_args()
    # 使用 args.branch_or_path 获取命令行参数的值
    command_line = f'git status {unknown_args[0] if len(unknown_args) > 0 else args.type}'
    command.exe_command(command_line)


if __name__ == '__main__':
    git_status()
